﻿<UserControl x:Class="personalplaner.gui.settings.views.GeneralSettingsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:p="clr-namespace:personalplaner.gui.Properties">
    <Grid>

        <!--<Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>-->
        
        <GroupBox Header="{x:Static p:Resources.Mandanten}">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <ListBox ItemsSource="{Binding Mandanten}" SelectedItem="{Binding SelectedMandant}" MinWidth="220" HorizontalAlignment="Left" MinHeight="60" BorderThickness="1">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Border BorderBrush="Black" BorderThickness="1" Margin="3" HorizontalAlignment="Stretch" Padding="3">
                                <Grid >
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition />
                                        <RowDefinition />
                                    </Grid.RowDefinitions>
                                    <TextBlock Text="Id"/>
                                    <TextBlock Text=":" Grid.Column="1" Margin="10,0,10,0"/>
                                    <TextBlock Text="{Binding MandId}" FontWeight="Thin" Grid.Column="2"/>
                                    <TextBlock Text="{x:Static p:Resources.Beschreibung}" Grid.Row="1"/>
                                    <TextBlock Text=":" Grid.Column="1" Grid.Row="1" Margin="10,0,10,0"/>
                                    <TextBlock Text="{Binding Beschreibung}" FontWeight="Thin" Grid.Column="2" Grid.Row="1"/>
                                </Grid>
                            </Border>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
                <Button Grid.Row="1" Command="{Binding ActivateMandantCommand}" MinWidth="60" HorizontalAlignment="Left" Margin="0,20,0,0">
                    <TextBlock Text="{x:Static p:Resources.MandantAktivieren}"/>
                </Button>
                
            </Grid>
        </GroupBox>
        
        <!--<GroupBox Header="{x:Static p:Resources.Anmeldung}" Grid.Row="1">
            <Grid>
                <CheckBox IsChecked="{Binding SavePassword}">
                    <TextBlock Text="{x:Static p:Resources.PasswortSpeichern}"/>
                </CheckBox>
                
            </Grid>
        </GroupBox>-->
        
    </Grid>
</UserControl>
